﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AddMoneyData.aspx.vb" Inherits="webfinancegdrassign4.AddMoneyData" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>

    <link href="../Content/bootstrap.css" rel="stylesheet" />
    <link href="../Content/mystyle.css" rel="stylesheet" />
    <style>
        .classrd {
        }

        .frm-rght-clr123 RadioButton lable {
        }

        .frm-rght-clr123 label {
            margin-top: -14px;
            display: block;
            margin-bottom: 5px;
        }

       .frm-rght-clr123  RadioButton,input, textarea, .uneditable-input {
            width: 100px;
        }
       body {
            margin: 0px;
            padding: 0px;
            background: #eeeeee;
        }
    </style>
    
    <script src="../Scripts/ajax.googleapis.com.ajax.libs.jquery.1.4.2.jquery.min.js"></script>
    <script type="text/javascript" language="javascript">

        function returnempcode() {

            window.opener.focus();
            window.close();
            window.opener.location.reload();
        }


       
    </script>
    <script type ="text/javascript" >
        $(document).ready(function () {
            document.getElementById('<%=fl6.ClientID()%>').onchange = function () {
                document.getElementById('<%=txtfl6.ClientID()%>').value = this.value;
            }
        });
    </script>
    

</head>
<body>
    <form id="form1" runat="server">
        <div class="row-fluid">

            <table class="table">
                <tr>
                    <th colspan="4" class="td-head" style="text-align: center; font-size: 13px; color: #999;">Add New Record</th>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label9" runat="server" Text="Money Type Id"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:DropDownList ID="ddl_moneytype" runat="server" DataSourceID="SqlDataSource007" DataTextField="moneytype" DataValueField="ID" Width="210px">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="SqlDataSource007" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString07 %>" ProviderName="<%$ ConnectionStrings:ConnectionString07.ProviderName %>" SelectCommand="SELECT [ID], [moneytype] FROM [sms_moneytype]"></asp:SqlDataSource>

                    </td>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label2" runat="server" Text="Money Sub Type Id"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:DropDownList ID="ddl_submoney" runat="server" DataSourceID="SqlDataSource08" DataTextField="moneysubtype_name" DataValueField="ID" Width="210">
                        </asp:DropDownList>
                        <asp:SqlDataSource ID="SqlDataSource08" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString004 %>" ProviderName="<%$ ConnectionStrings:ConnectionString004.ProviderName %>" SelectCommand="SELECT [moneysubtype_name], [ID] FROM [sms_moneysubtype]"></asp:SqlDataSource>
                    </td>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label11" runat="server" Text="Company Name"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="company_name" runat="server" CssClass="textbox" Width="200"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="company_name"
                        CssClass="text-error" ErrorMessage='<img src="../img/error1.gif" alt="" />' ToolTip="The Company Name field is required." /></td>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label13" runat="server" Text="Location:"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="location" runat="server" CssClass="textbox" Width="200px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="location"
                        CssClass="text-error" ErrorMessage='<img src="../img/error1.gif" alt="" />' ToolTip="The Location field is required." />


                    </td>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label3" runat="server" Text="Stars" ></asp:Label></td>
                    <td class="frm-rght-clr123" style="border: 0px none none; padding: 10px; margin: 0px">


                        <asp:RadioButton ID="RadioButton1" Checked="true" runat="server" CssClass="classrd" GroupName="Star" Text="Star1" Style="border: 0px none none; padding: 0px; margin: 0px; float: left" />
                        <asp:RadioButton ID="RadioButton2" runat="server" CssClass="classrd" GroupName="Star" Text="Star2" Style="border: 0px none none; padding: 0px; margin: 0px; " />
                        <asp:RadioButton ID="RadioButton3" runat="server" CssClass="classrd" GroupName="Star" Text="Star3" Style="border: 0px none none; padding: 0px; margin: 0px;float: left" />
                        <asp:RadioButton ID="RadioButton4" runat="server" CssClass="classrd" GroupName="Star" Text="Star4" Style="border: 0px none none; padding: 0px; margin: 0px; " />
                        <asp:RadioButton ID="RadioButton5" runat="server" CssClass="classrd" GroupName="Star" Text="Star5" Style="border: 0px none none; padding: 0px; margin: 0px" />

                         <asp:Label ID="lblError" runat ="server" style="color:red;" ></asp:Label>

                    </td>





                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label4" runat="server" Text=" Description"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="txt_desc" runat="server" CssClass="textarea" TextMode="MultiLine" Rows="3" Width="200"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_desc"
                        CssClass="text-error" ErrorMessage='<img src="../img/error1.gif" alt="" />' ToolTip="The Description field is required." />


                    </td>
                </tr>

                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label5" runat="server" Text="Contact Details"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="contact_details" runat="server" CssClass="textarea" TextMode="MultiLine" Rows="3" Width="200"></asp:TextBox> 
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="contact_details"
                        CssClass="text-error" ErrorMessage='<img src="../img/error1.gif" alt="" />' ToolTip="The Contact field is required." />
                    </td>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label6" runat="server" Text="Company URL"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="company_url" runat="server" CssClass="textbox" Width="200"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="company_url"
                        CssClass="text-error" ErrorMessage='<img src="../img/error1.gif" alt="" />' ToolTip="The Company URL field is required." />

                    </td>
                </tr>
                <tr>
                    <td class="frm-lft-clr123">
                        <asp:Label ID="Label7" runat="server" Text="Picture"></asp:Label></td>
                    <td class="frm-rght-clr123">
                        <asp:TextBox ID="txtfl6" CssClass="textbox" runat="server" Width="150"></asp:TextBox>
                        <div class="fileUpload btn btn-primary" id="divfl6" runat="server">
                            <span style="margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline;">Upload</span>
                            <asp:FileUpload ID="fl6" runat="server" Width="50" CssClass="upload" />
                        </div>
                        <asp:Label ID="lbl_pic" runat="server"></asp:Label>
                    </td>

                </tr>
                <tr>
                    <td colspan="4" class="frm-lft-clr123" style="text-align: center;"><%--<a href="javascript:returnempcode('Raghu')" >Click</a>--%>
                        <asp:Button ID="Button3" runat="server" Text="Save" CssClass="button" Style="width: 70px;" OnClick="Button3_Click" />
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:Addsmscomments %>" ProviderName="<%$ ConnectionStrings:Addsmscomments.ProviderName %>" SelectCommand="SELECT * FROM [sms_mondeydata]"></asp:SqlDataSource>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
